package com.lcy.web.generator;

import com.jfinal.plugin.activerecord.generator.Generator;
import com.jfinal.plugin.activerecord.generator.ModelGenerator;

import javax.sql.DataSource;

/**
 * Created by loucunyin on 2016/12/5 0005.
 * 修改 mappingKitGenerator
 */
public class MyGenerator extends Generator {

    public MyGenerator(DataSource dataSource, String baseModelPackageName, String baseModelOutputDir, String modelPackageName, String modelOutputDir) {
        super(dataSource, new MyBaseModelGenerator(baseModelPackageName, baseModelOutputDir), new ModelGenerator(modelPackageName, baseModelPackageName, modelOutputDir));
        mappingKitGenerator=new MyMappingKitGenerator(modelPackageName,modelOutputDir);
    }
}
